"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get("/home/index", controller.home.index);
  router.get("/home/id/:id", controller.home.id);
  router.get("/home/user/:name", controller.home.addName);
  router.get("/home/test/get", controller.home.get);
  router.get("/home/test/query", controller.home.query);
  router.get("/home/test/queries", controller.home.queries);
  router.post("/home/test/post", controller.home.post);
};
